
<div class="CommonHeader">
    <div class="CommonBackBtn"><a href="javascript:history.go(-1)"><img src="__CDN__/map/images/return_black.png" alt="返回"/></a></div>
    <div class="CommonTitle">个人资料</div>
</div>

<div class="CommonMain">
    <form action="{:url('user/pro')}"  enctype="multipart/form-data"  method="post" name="form">
        <div class="InfosBox ">
            <div class="InfostDiv am-cf">
                <span class="am-fl">昵称</span>
                {:token()}
                <input  class="am-fl" type="text" value="{$user.nickname}" name="nickname" placeholder="请输入昵称"/>
            </div>
        </div>
        <div class="DmBtn Mt70">
            <input class="gradualBg" id="gradualBg" type="button" value="保存"/>
        </div>
    </form>
</div>
<script type="text/javascript" src="__CDN__/assets/js/jquery.form.js"></script>
<script>
        $('#gradualBg').on('click',function () {
            $("form").ajaxSubmit(function (e) {
                if(e.code==1){
                    alert('保存成功')
                    history.go(-1);
                }else{
                    alert(e.msg);
                }

            })
        })




</script>